package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `json:"username" gorm:"type:varchar(20);not null" ` //数据高级约束交给validate(binding)来完成
	Email    string `json:"email" gorm:"type:varchar(20);not null;unique"`
	Avatar   string `json:"avatar"`
}
